<%@ page language="java" contentType="application/xhtml+xml; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="u" tagdir="/WEB-INF/tags" %>
<u:html-top title="Reception ${reception.cdNumber}"/>



<div class="showEntity">

<dl>

<dt>Individual</dt>
<dd><u:individual-href individual="${reception.individual}"/></dd>

<dt>CD-Number</dt>
<dd><c:out value="${reception.cdNumber}" escapeXml="true"/></dd>

<dt>Created By</dt>
<dd><u:user-href user="${reception.createdBy}"/></dd>

<dt>Creation</dt>
<dd><c:out value="${reception.creation}" escapeXml="true"/></dd>

</dl>

</div>


<h2>Extractions</h2>

<c:if test="${userHasWritePrivileges }">
<div>
<c:url value="/db/extraction/create" var="url">
	<c:param name="reception_id" value="${reception.id}"/>
</c:url>
<a href="<c:out value="${url}" escapeXml="true"/>">Create a new Extraction</a>
</div>
</c:if>

<c:choose>
<c:when test="${not empty reception.extractions }">
<u:extraction-list extractions="${reception.extractions}"/>
</c:when>
<c:otherwise>
<i>No Extraction.</i>
</c:otherwise>
</c:choose>

<h2>Tubes</h2>
<c:choose>
<c:when test="${not empty reception.tubes }">
<u:tube-list tubes="${reception.tubes}"/>
</c:when>
<c:otherwise>
<i>No Reception.</i>
</c:otherwise>
</c:choose>



<u:html-bottom/>